﻿using Cirrious.MvvmCross.ViewModels;
using Cirrious.MvvmCross.WindowsCommon.Views;
using Windows.UI.Xaml.Controls;

namespace XXX.UI.WinRT.Views
{
	public sealed partial class AppStartView : UserControl, IMvxWindowsView
	{
		#region Public Members

		private IMvxViewModel _viewModel;
		public IMvxViewModel ViewModel
		{
			get { return _viewModel; }
			set
			{
				if (_viewModel == value)
					return;
				_viewModel = value;
				DataContext = ViewModel;
			}
		}

		public void ClearBackStack()
		{
			throw new System.NotImplementedException();
			/*
			// note - we do *not* use CanGoBack here - as that seems to always returns true!
			while (NavigationService.BackStack.Any())
				NavigationService.RemoveBackEntry();
		 */
		}

		#endregion
		#region Constructors

		public AppStartView()
		{
			InitializeComponent();
		}

		#endregion
	}
}
